<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class TaskHelp extends MY_Controller
{
	//取得帮助任务列表,将uid设为3
	public function gethelp()
	{
		$this->load->database();
		$this->db->where('uid', 3);
		$this->db->order_by('parent asc,sort desc');
		$query = $this->db->get('task');
		if ($num_rows = $query->num_rows() > 0) {
			$result_array['data'] = $query->result_array();
			$result_array['status'] = 'success';
		} else {
			$result_array['status'] = 'nofound';
		}
		$this->array_to_json($result_array);
	}

}